package ascpchannel

import (
	"github.com/bububa/opentaobao/core"
	"github.com/bububa/opentaobao/model/ascpchannel"
)

// AlibabaAscpUopSupplierReverseorderCreate 商家ERP发起创建销退单服务
// alibaba.ascp.uop.supplier.reverseorder.create
//
// 商家在收到消费者实物退货后，在ERP发起创建销退单服务
func AlibabaAscpUopSupplierReverseorderCreate(clt *core.SDKClient, req *ascpchannel.AlibabaAscpUopSupplierReverseorderCreateAPIRequest, session string) (*ascpchannel.AlibabaAscpUopSupplierReverseorderCreateAPIResponse, error) {
	var resp ascpchannel.AlibabaAscpUopSupplierReverseorderCreateAPIResponse
	err := clt.Post(req, &resp, session)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
